home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / UTIL / merryxmas Vaccine.sit / merryxmas Vaccine / merryxmas Vaccine 3.0 / cards.xml < prev    next >
Text File  |  1995-08-28  |  16KB  |  231 lines

  1. card_2288.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2288</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2624</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3117.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>field</type>
  15.         <visible> <true /> </visible>
  16.         <dontWrap> <false /> </dontWrap>
  17.         <dontSearch> <false /> </dontSearch>
  18.         <sharedText> <false /> </sharedText>
  19.         <fixedLineHeight> <false /> </fixedLineHeight>
  20.         <autoTab> <false /> </autoTab>
  21.         <lockText> <true /> </lockText>
  22.         <rect>
  23.             <left>4</left>
  24.             <top>4</top>
  25.             <right>507</right>
  26.             <bottom>316</bottom>
  27.         </rect>
  28.         <style>scrolling</style>
  29.         <autoSelect> <false /> </autoSelect>
  30.         <showLines> <false /> </showLines>
  31.         <wideMargins> <true /> </wideMargins>
  32.         <multipleLines> <false /> </multipleLines>
  33.         <reservedFamily> 0 </reservedFamily>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>left</textAlign>
  37.         <font>Geneva</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <textHeight>16</textHeight>
  41.         <name>about</name>
  42.         <script>on mouseDownif the clickText is "Billツ Swagerty" thenif there is a window "Bill" thenshow window "Bill"elselowMemend ifend ifend mouseDownon mouseUpif the clickText is "Billツ Swagerty" thenif there is a window "Bill" thenhide window "Bill"end ifelseset the scroll of me to zerovisual effect dissolve to whitevisual effect dissolvego next cdend ifend mouseUp</script>
  43.     </part>
  44.     <content>
  45.         <layer>card</layer>
  46.         <id>1</id>
  47.         <text><span class="style12">hat this stack is for</span><span class="style1">This stack eliminates script based viruses which spread themselves by appending the scripts of other stacks with additional instructions which in turn infects every stack they come in contact with. The original virus of this ilk is called 窶徇erryxmas.窶</span><span class="style12">merryxmas Vaccine</span><span class="style15"> The Next Generation </span><span class="style1">Since the appearance of merryxmas, other strains have surfaced such as merry2xmas, Lopez and others too crude to mention. Version 3.0 of this stack is a new, broad spectrum vaccine that catches them all.</span><span class="style12">What the viruses do</span><span class="style1">By design, most of these viruses are intended only to replicate themselves in other stacks. The worst they are </span><span class="style13">intended </span><span class="style1">to do is quit (not crash) HyperCard unexpectedly. An unintended problem is that portions of other scripts can get sucked into the virus script. The results can be confusing and frustrating.</span><span class="style15">NEW in v3.0 </span><span class="style1">Another HyperTalk based virus that merryxmas Vaccine now catches is 窶徘ickle窶 also known as 窶廩C 9507.窶 The pickle virus is a nasty creation that copies not only itself into the scripts of random stacks, it copies resources 窶” several of which are bastardized copies of Frテゥdテゥric Rinaldi窶冱 XCMDs & XFCNs.If your stack already contains resources with the same name orID numbers 窶” they get clobbered. Pickle is also known to cause crashes.</span><span class="style12">Requirements</span><span class="style1">This stack requires HyperCard v2.1 or later. This is to handle System 7 aliases. System 7 is not required. Color monitors (optional) will display 窶徭tatus colors.窶If you use a compression utility such as AutoDoubler邃「, be sure to have adequate free space on the volume being checked. Stacks have a way of expanding as they are being examined.This stack needs to run unlocked in order to display it窶冱 findings.</span><span class="style12">What this stack will do</span><span class="style1">For a selected stack, folder or entire volume, this stack will peek at the stack scripts (without opening the stacks); and strip out the virus code.A bonus feature is the option to let it compact those stacks that have free space available for compacting. Don窶冲 worry about locked stacks窶杯his stack will unlock them as needed and relock them.This stack will also offer to lock the Home stack against future infections. This is the same as checking the 窶廰ocked窶 checkbox in the Get Info window and can be unlocked at any time by clicking once on the icon of the Home stack; choosing Get Info from the File menu; then unchecking the checkbox.</span><span class="style12">How to use this stack</span><span class="style1">Step 1. If you know, or suspect that the Home stack is infected, it is a            good idea to replace it with a copy from your original disk first.Step 2. Open this stack and click the 窶廛isinfect Stacks窶 button.Step 3. Select the stack, folder or volume (disk) you wish to disinfect.</span><span class="style15">NEW in v3.0 </span><span class="style1">Thanks to this version窶冱 ability to disinfect itself upon opening if need be, you no longer have to be concerned with keeping a locked copy of this stack to protect it from infection.To take this stack out for a dry run first, use it to scan a floppy disk.Locked volumes will be scanned without making changes.</span><span class="style12">The scripts</span><span class="style1">The code is based on a copy of an infected stack brought to my attention by Ken Dunham at LaGrande Middle School. It was developed on my own time, at home, for use in the public domain.</span><span class="style12">Soapbox</span><span class="style1">Viruses are unworthy creations for such clever and talented people.It is my hope that the authors of HyperTalk based viruses will realize the destructive impact that pranks like this have in terms of lost time & productivity and find inspiration for more constructive contributions.Copycat virus spreaders on the other hand are neither clever nor talented.They are small minded trouble makers, low on the food chain.Bill</span><span class="style17">ツ </span><span class="style1">Swagerty  (click & hold my name)AOL: Bill DSInternet: billds@aol.com</span><span class="style12">Version History & Acknowledgements</span><span class="style1">Version 3.0-Now scans itself for viruses and eliminates them upon opening.-Created two new XFCNs for better script salvaging performance.-Now eliminates virus code from the unused portion of the data fork toツ help commercial utilities that can窶冲 tell what窶冱 used from what isn窶冲.-New DNACheck XFCN to catch all strains of the merryxmas virus includingツ a destructive strain called 窶彡rudshot.窶-Removes the 窶徘ickle窶 virus, a HyperTalk virus not related to merryxmas.*Jacque Gay for excellent brainstorming and thorough testing.*Bill Stafford for pointing out how compacting could work as intended.*Ken Dunham for pointing out a resume stack window loading problem.*Till Stegers for suggesting the option to save reports to a file on disk.Version 2.0*Jacque Gay for ideas on broader detection and protection techniques.*Ralph Gross, Batavia Middle School for isolating additional virus strains.-Now employs a custom XFCN to catch more strains of merryxmas.-Abandoned attempts at inoculating the Home stack in favor of locking it.-Added provision for scanning standalone stack applications.Version 1.5*Dennis Kane for bringing the misuse of a reserved word to my attention. -Added an option to inoculate the Home stack against future infections.-Made the color indicator move with the card when the window is moved.-Added a button for printing the activity report at the end of a scan.-Added a musical completion notice.Version 1.4*Ronald Zellner, Texas A&M University for better inoculation strings.-Added provision for scanning an individual stack or folder.-Enhanced to display colors on monitors set for more than 256 colors.Version 1.3-To accommodate accidental mutations, the vaccine now removesツ everything from the virus code on down from infected stack scripts.-Stacks are assumed to be Finder locked if IsFinderLocked fails.Version 1.2*Mark Johnson for pointing out GetDir窶冱 weakness for names with commas.-Color indicator light left red if any stacks could not be disinfected.Version 1.1-Accommodated the way Mac Pluses respond to the MonitorConfig XFCN.Version 1.0*Ken Dunham <kdunham@ednet1.osl.or.gov> for telling me about the virus.*Bill Marriott for the straight HyperTalk progress bar.</span><span class="style11">DNACheck v1.1       XFCN ツゥ 1995      Jacque Gay</span><span class="style1"></span><span class="style11">FilePath v1.1       XFCN ツゥ 1989,1990 Apple Computer, Inc.FolderPath v1.1     XFCN ツゥ 1989,1990 Apple Computer, Inc.GetDir v2.2         XFCN ツゥ 1990窶ヲ1992 Frテゥdテゥric RinaldiGetFInfo v1.3       XFCN ツゥ 1990窶ヲ1993 Frテゥdテゥric RinaldiIsFinderLocked v1.2 XFCN ツゥ 1990,1991 Frテゥdテゥric RinaldiKillRes v1.4        XCMD ツゥ 1990窶ヲ1992 Frテゥdテゥric RinaldiLostInSpaces1 v1.0  XFCN ツゥ 1995      Bill SwagertyLostInSpaces2 v1.0  XFCN ツゥ 1995      Bill SwagertyMonitorConfig v1.1  XFCN ツゥ 1989,1990 Apple ComputerSetFinderLock v1.2  XCMD ツゥ 1990,1991 Frテゥdテゥric RinaldiVolumePath v1.1     XFCN ツゥ 1989      Apple Computer, Inc.VolumeIsLocked v1.0 XFCN ツゥ 1990      Apple Computer, Inc.AutoDoubler is a trademark of Salient Software, Inc.</span></text>
  48.     </content>
  49.     <name></name>
  50.     <script>on openCardset the scroll of cd fld 1 to zeroend openCardon moveWindowglobal statusColorsif statusColors thenset loc of window "green" to  10,263set loc of window "amber" to  10,263set loc of window "red"   to  10,263set loc of window "Bill"  to 206,110end ifend moveWindowon mouseDownInPicturehide window "Bill"end mouseDownInPicture</script>
  51. </card>
  52.  
  53.  
  54. card_2884.xml
  55. <?xml version="1.0" encoding="utf-8" ?>
  56. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  57. <card>
  58.     <id>2884</id>
  59.     <filler1>0</filler1>
  60.     <cantDelete> <true /> </cantDelete>
  61.     <showPict> <true /> </showPict>
  62.     <dontSearch> <false /> </dontSearch>
  63.     <owner>2624</owner>
  64.     <link rel="stylesheet" type="text/css" href="stylesheet_3117.css" />
  65.     <part>
  66.         <id>2</id>
  67.         <type>button</type>
  68.         <visible> <true /> </visible>
  69.         <reserved5> 0 </reserved5>
  70.         <reserved4> 0 </reserved4>
  71.         <reserved3> 0 </reserved3>
  72.         <reserved2> 0 </reserved2>
  73.         <reserved1> 0 </reserved1>
  74.         <enabled> <true /> </enabled>
  75.         <rect>
  76.             <left>8</left>
  77.             <top>239</top>
  78.             <right>503</right>
  79.             <bottom>251</bottom>
  80.         </rect>
  81.         <style>transparent</style>
  82.         <showName> <false /> </showName>
  83.         <highlight> <false /> </highlight>
  84.         <autoHighlight> <false /> </autoHighlight>
  85.         <sharedHighlight> <true /> </sharedHighlight>
  86.         <family>0</family>
  87.         <titleWidth>0</titleWidth>
  88.         <icon>0</icon>
  89.         <textAlign>center</textAlign>
  90.         <font>Chicago</font>
  91.         <textSize>12</textSize>
  92.         <textStyle>plain</textStyle>
  93.         <name>Frame</name>
  94.         <script></script>
  95.     </part>
  96.     <part>
  97.         <id>3</id>
  98.         <type>button</type>
  99.         <visible> <true /> </visible>
  100.         <reserved5> 0 </reserved5>
  101.         <reserved4> 0 </reserved4>
  102.         <reserved3> 0 </reserved3>
  103.         <reserved2> 0 </reserved2>
  104.         <reserved1> 0 </reserved1>
  105.         <enabled> <true /> </enabled>
  106.         <rect>
  107.             <left>65535</left>
  108.             <top>65534</top>
  109.             <right>65532</right>
  110.             <bottom>65533</bottom>
  111.         </rect>
  112.         <style>rectangle</style>
  113.         <showName> <false /> </showName>
  114.         <highlight> <true /> </highlight>
  115.         <autoHighlight> <false /> </autoHighlight>
  116.         <sharedHighlight> <true /> </sharedHighlight>
  117.         <family>0</family>
  118.         <titleWidth>0</titleWidth>
  119.         <icon>0</icon>
  120.         <textAlign>center</textAlign>
  121.         <font>Chicago</font>
  122.         <textSize>12</textSize>
  123.         <textStyle>plain</textStyle>
  124.         <name>Bar</name>
  125.         <script></script>
  126.     </part>
  127.     <part>
  128.         <id>6</id>
  129.         <type>field</type>
  130.         <visible> <true /> </visible>
  131.         <dontWrap> <false /> </dontWrap>
  132.         <dontSearch> <false /> </dontSearch>
  133.         <sharedText> <false /> </sharedText>
  134.         <fixedLineHeight> <false /> </fixedLineHeight>
  135.         <autoTab> <false /> </autoTab>
  136.         <lockText> <true /> </lockText>
  137.         <rect>
  138.             <left>10</left>
  139.             <top>263</top>
  140.             <right>67</right>
  141.             <bottom>280</bottom>
  142.         </rect>
  143.         <style>transparent</style>
  144.         <autoSelect> <false /> </autoSelect>
  145.         <showLines> <false /> </showLines>
  146.         <wideMargins> <false /> </wideMargins>
  147.         <multipleLines> <false /> </multipleLines>
  148.         <reservedFamily> 0 </reservedFamily>
  149.         <titleWidth>0</titleWidth>
  150.         <icon>0</icon>
  151.         <textAlign>left</textAlign>
  152.         <font>Geneva</font>
  153.         <textSize>12</textSize>
  154.         <textStyle>plain</textStyle>
  155.         <textHeight>16</textHeight>
  156.         <name></name>
  157.         <script></script>
  158.     </part>
  159.     <part>
  160.         <id>10</id>
  161.         <type>button</type>
  162.         <visible> <false /> </visible>
  163.         <reserved5> 0 </reserved5>
  164.         <reserved4> 0 </reserved4>
  165.         <reserved3> 0 </reserved3>
  166.         <reserved2> 0 </reserved2>
  167.         <reserved1> 0 </reserved1>
  168.         <enabled> <true /> </enabled>
  169.         <rect>
  170.             <left>361</left>
  171.             <top>186</top>
  172.             <right>474</right>
  173.             <bottom>214</bottom>
  174.         </rect>
  175.         <style>roundrect</style>
  176.         <showName> <true /> </showName>
  177.         <highlight> <false /> </highlight>
  178.         <autoHighlight> <true /> </autoHighlight>
  179.         <sharedHighlight> <true /> </sharedHighlight>
  180.         <family>0</family>
  181.         <titleWidth>0</titleWidth>
  182.         <icon>0</icon>
  183.         <textAlign>center</textAlign>
  184.         <font>Chicago</font>
  185.         <textSize>12</textSize>
  186.         <textStyle>plain</textStyle>
  187.         <name>Save as text窶ヲ</name>
  188.         <script>on mouseUpput "Selecting report destination..." into fld "status"get FolderPath("Where would you like this report?")if it is empty thenput empty into fld "status"exit mouseUpelseput "Saving report to disk..." into fld "status"put it & "Vaccine Report" && the short date into itopen file itif the result 竕  empty then put "Open failed -" && the result into fld "status"write "merrymas Vaccine 3.0 Report on" && the short date && "at" ツャ&& the short time & return & return & fld "stacks" to file itif the result 竕  empty then put "Write failed -" && the result into fld "status"close file itif the result 竕  empty then put "Close failed -" && the result into fld "status"end ifif fld "status" = "Saving report to disk..."then put "Report saved to disk." into fld "status"end mouseUp</script>
  189.     </part>
  190.     <part>
  191.         <id>20</id>
  192.         <type>button</type>
  193.         <visible> <false /> </visible>
  194.         <reserved5> 0 </reserved5>
  195.         <reserved4> 0 </reserved4>
  196.         <reserved3> 0 </reserved3>
  197.         <reserved2> 0 </reserved2>
  198.         <reserved1> 0 </reserved1>
  199.         <enabled> <true /> </enabled>
  200.         <rect>
  201.             <left>361</left>
  202.             <top>146</top>
  203.             <right>474</right>
  204.             <bottom>174</bottom>
  205.         </rect>
  206.         <style>roundrect</style>
  207.         <showName> <true /> </showName>
  208.         <highlight> <false /> </highlight>
  209.         <autoHighlight> <true /> </autoHighlight>
  210.         <sharedHighlight> <true /> </sharedHighlight>
  211.         <family>0</family>
  212.         <titleWidth>0</titleWidth>
  213.         <icon>0</icon>
  214.         <textAlign>center</textAlign>
  215.         <font>Chicago</font>
  216.         <textSize>12</textSize>
  217.         <textStyle>plain</textStyle>
  218.         <name>Print Report</name>
  219.         <script>on mouseUpprint field "stacks"end mouseUp</script>
  220.     </part>
  221.     <content>
  222.         <layer>background</layer>
  223.         <id>10</id>
  224.         <text>Patience grasshopper...</text>
  225.     </content>
  226.     <name></name>
  227.     <script>on openCardinitializeend openCardon moveWindowglobal statusColorsif statusColors thenset loc of window "green" to  10,263set loc of window "amber" to  10,263set loc of window "red"   to  10,263set loc of window "Bill"  to 206,110end ifend moveWindowon closeCardglobal statusColors,lastColorput empty into fld "status"if statusColors thenif there is a window "green" thenif visible of window "green" is true thenhide window "green"put "green" into lastColorend ifend ifif there is a window "amber" thenif visible of window "amber" is true thenhide window "amber"put "amber" into lastColorend ifend ifif there is a window "red" thenif visible of window "red" is true thenhide window "red"put "red" into lastColorend ifend ifend ifend closeCardon showProgress thePercentput the rect of btn "Frame" into tempRput (item 3 of tempR - item 1 of tempR) into tempWput item 1 of tempR + round(thePercent * tempW) ツャinto item 3 of tempRset the rect of btn "Bar" to tempRend showProgress</script>
  228. </card>
  229.  
  230.  
  231.